package com.lamer.console.blog.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lamer.console.blog.entity.Chapter;
import com.lamer.console.blog.mapper.ChapterMapper;
import com.lamer.console.blog.service.IChapterService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lamer.console.blog.vo.ChapterVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 黄诗鹏
 * @since 2021-11-24
 */
@Service
public class ChapterServiceImpl extends ServiceImpl<ChapterMapper, Chapter> implements IChapterService {

    @Resource
    private ChapterMapper chapterMapper;

    @Override
    public Page<ChapterVO> pageChapterVO(Page<ChapterVO> page, QueryWrapper<ChapterVO> queryWrapper) {
        return chapterMapper.selectChapterVOPage(page, queryWrapper);
    }
}
